﻿@model Nop.Web.Models.Customer.CustomeReturnRequestsModel
@{
    Layout = "~/Views/Shared/_Root.cshtml";

    //title
    Html.AddTitleParts(T("PageTitle.Account").Text);
}
@using Nop.Web.Framework;
<div class="account-page">
    <div class="page-title">
        <h1>@T("Account.CustomerReturnRequests")</h1>
    </div>
    <div class="clear">
    </div>
    <div class="body">
        <div class="customer-return-request-list">
            @if (Model.Items.Count > 0)
            {
                <ul data-role="listview" data-inset="true" data-filter="false">
                    @foreach (var item in Model.Items)
                    {
                        <li>
                            <div class="request-item">
                                <b>@string.Format(T("Account.CustomerReturnRequests.Title").Text, item.Id, item.ReturnRequestStatus)</b>
                                <br />
                                @T("Account.CustomerReturnRequests.Item") <a href="@Url.RouteUrl("Product", new { productId = item.ProductId, SeName = item.ProductSeName })" title="View details">@item.ProductName</a>
                                x @item.Quantity
                                <br />
                                @string.Format(T("Account.CustomerReturnRequests.Reason").Text, item.ReturnReason)
                                <br />
                                @string.Format(T("Account.CustomerReturnRequests.Action").Text, item.ReturnAction)
                                <br />
                                @string.Format(T("Account.CustomerReturnRequests.Date").Text, item.CreatedOn.ToString())
                                @if (!String.IsNullOrEmpty(item.Comments))
                                {
                                    <br />
                                    @T("Account.CustomerReturnRequests.Comments")
                                    <br />
                                    @Html.Raw(Nop.Core.Html.HtmlHelper.FormatText(item.Comments, false, true, false, false, false, false))
                                }
                            </div>
                        </li>
                    }
                </ul>
            }
        </div>
    </div>
</div>
